package thinkingJava.chapter15;

import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.List;

public class NeedCasting {
	@SuppressWarnings("unchecked")
	public void f(String[] args) throws Exception {
		ObjectInputStream ois = new ObjectInputStream(new FileInputStream(args[0]));
		List<Widget> shapes = (List<Widget>)ois.readObject();
	}
}
